﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DA1 RID: 3489
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class QuitBattleScRsp : IMessage<QuitBattleScRsp>, IMessage, IEquatable<QuitBattleScRsp>, IDeepCloneable<QuitBattleScRsp>, IBufferMessage
	{
		// Token: 0x17002C53 RID: 11347
		// (get) Token: 0x06009C9A RID: 40090 RVA: 0x001A3354 File Offset: 0x001A1554
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<QuitBattleScRsp> Parser
		{
			get
			{
				return QuitBattleScRsp._parser;
			}
		}

		// Token: 0x17002C54 RID: 11348
		// (get) Token: 0x06009C9B RID: 40091 RVA: 0x001A335B File Offset: 0x001A155B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return QuitBattleScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002C55 RID: 11349
		// (get) Token: 0x06009C9C RID: 40092 RVA: 0x001A336D File Offset: 0x001A156D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return QuitBattleScRsp.Descriptor;
			}
		}

		// Token: 0x06009C9D RID: 40093 RVA: 0x001A3374 File Offset: 0x001A1574
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitBattleScRsp()
		{
		}

		// Token: 0x06009C9E RID: 40094 RVA: 0x001A337C File Offset: 0x001A157C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitBattleScRsp(QuitBattleScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009C9F RID: 40095 RVA: 0x001A33A1 File Offset: 0x001A15A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitBattleScRsp Clone()
		{
			return new QuitBattleScRsp(this);
		}

		// Token: 0x17002C56 RID: 11350
		// (get) Token: 0x06009CA0 RID: 40096 RVA: 0x001A33A9 File Offset: 0x001A15A9
		// (set) Token: 0x06009CA1 RID: 40097 RVA: 0x001A33B1 File Offset: 0x001A15B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06009CA2 RID: 40098 RVA: 0x001A33BA File Offset: 0x001A15BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as QuitBattleScRsp);
		}

		// Token: 0x06009CA3 RID: 40099 RVA: 0x001A33C8 File Offset: 0x001A15C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(QuitBattleScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009CA4 RID: 40100 RVA: 0x001A33F8 File Offset: 0x001A15F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009CA5 RID: 40101 RVA: 0x001A3437 File Offset: 0x001A1637
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009CA6 RID: 40102 RVA: 0x001A343F File Offset: 0x001A163F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009CA7 RID: 40103 RVA: 0x001A3448 File Offset: 0x001A1648
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009CA8 RID: 40104 RVA: 0x001A347C File Offset: 0x001A167C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009CA9 RID: 40105 RVA: 0x001A34BA File Offset: 0x001A16BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(QuitBattleScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009CAA RID: 40106 RVA: 0x001A34EB File Offset: 0x001A16EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009CAB RID: 40107 RVA: 0x001A34F4 File Offset: 0x001A16F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003C7D RID: 15485
		private static readonly MessageParser<QuitBattleScRsp> _parser = new MessageParser<QuitBattleScRsp>(() => new QuitBattleScRsp());

		// Token: 0x04003C7E RID: 15486
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003C7F RID: 15487
		public const int RetcodeFieldNumber = 1;

		// Token: 0x04003C80 RID: 15488
		private uint retcode_;
	}
}
